package com.v2.k16;


/**
 * 测试循环依赖
 */
public class Test {

	public static void main(String[] args) {

		//A依赖B  B依赖A
		A a = new A();
		B b = new B();
		a.b = b;
		b.a = a;

		System.out.println("a = "+a+" ; a.b = "+a.b);
		System.out.println("b = "+b+" ; b.a = "+b.a);

	}

}
